<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title></title>
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/admin.css'); ?>">
<link rel="stylesheet" type="text/css" href="<?php echo $this->_webroot('skin/css/main.css'); ?>">
<script type='text/javascript' src="<?php echo $this->_webroot('skin/js/jy.js'); ?>"></script>
<style>
td span {color:red;}
.green {color:green;}
.red {color:red;}
#divname{float:left; margin:0px;}
</style>
</head>
<body>
<input type="hidden" id="update_right" value="1" ></input>
<div id="maincontent">
	<div class="wrap">
       <div class="crumbs">当前位置 &gt;&gt; 网站管理 &gt;&gt; 站内消息管理</div>
        <hr />

	<div class="infobox">
<h3><span class="left">站内消息管理</span> <span style="margin-right:15px;" class="right"><a href="<?php echo $this->_url('admin/remind/remindadd/');?>">添加消息</a></span></h3>
    <div class="content2">
		<form action="a.php?act=news_catdel" name="form1" id="form1" method="post">
		<table class="list_table">
		  <thead>
            <tr style=" text-align:center">
				<th width="30px"><input type="checkbox" value="" onclick="checkall(this,'rinfo_id[]');"></th>
				<th width="30px">ID</th>
				<th width="" align="left">消息内容</th>
				<th width="60px">操作</th>
			</tr>
			</thead>
			<tbody>
			<?php if($result['data'] ) {
			foreach($result['data']  as $value) { $value= $value['remindinfo']; ?>
			<tr style=" text-align:center">
				<td width="30px"><input type="checkbox" name="cat_id[]" value="<?php echo $value['id'];?>"/></td>
				<td width="30px"><?php echo $value['id'];?></td>
				<td width="" align="left"><?php echo $value['remind_info'];?></td>
				<td width="60px">
					<a href="<?php echo $this->_url('admin/remind/remindedit/?');?>id=<?php echo $value['id'];?>">修改</a><br />
					<a href="<?php echo $this->_url('admin/remind/reminddel/?');?>id=<?php echo $value['id'];?>" onclick="return confirm('您确定要删除这条消息吗？');">删除</a>
				</td>
			</tr>
			<?php }?>
			<tr>
				<td colspan="6" class="center">
					<a href="<?php echo $result['page']['head'];?>">首页</a> 
                            <a href="<?php echo $result['page']['prevPage'];?>">上一页</a> 
                            <?php foreach($result['page']['plist'] as $k => $v ) { ?>							
                            <a href="<?php echo $v; ?>"><?php echo $k; ?></a>
							<?php } ?>
                            <a href="<?php echo $result['page']['nextPage'];?>">下一页</a> 
                            <a href="<?php echo $result['page']['foot'];?>">尾页</a> 
                            当前第<?php echo $result['page']['current']['num'];?>页/共<?php echo $result['page']['pageCount'];?>页						
				</td>
			</tr>
			<?php } else { ?>
			<tr>
				<td colspan="6">暂无信息</td>
			</tr>
			<?php } ?>
			</tbody>
		</table>
		</form>
	  </div>
	 </div>		

		
	
	</div>
</div>
<div style="color:red; display:none; width:270px; margin:5px auto;" id="ajaxmessageid">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 正在加载数据。。。</div>
<script language="JavaScript" src="<?php echo $this->_webroot('servtools/ajax_client/ajax.js'); ?>"></script>
<script language="JavaScript">
<!--
function toggle_show(obj,id) {
	var re = /yes/i;
	var src = obj.src;
	var isshow = 1;
	var sss = src.search(re);
	if(sss > 0) {
		isshow = 0;
	}
	ajax("a.php?act=news_isshow_toggle","POST","id="+id+"&s="+isshow,function(data){
		if(data) {
			obj.src = '../skin/default/images/'+data+'.gif';
		}
	});
}
var inputs = document.getElementsByTagName("input");

function delcheck(){
	var checked = false; 
    for (var i = 0; i < inputs.length; i++) 
    { 
    	if (inputs[i].checked == true) 
        {
            checked = true;
            if(confirm('确定要执行此操作吗？')){
            	break; 
                }else{
                	return false;
                	break; 
                    }
        }  
    } 
    if (!checked) 
    { 
        ShowMessageBox("请至少选择一个标题！",'0'); 
        return false; 
    }
    return true;
}
//-->
</script>
</body>
</html>